MindFusion.Charting for JavaScript Programmer's Guide
SimpleSeries Constructor
See Also
 






Initializes a new instance of the SimpleSeries class.

Namespace: MindFusion.Charting
File: SimpleSeries.js

 Syntax

JavaScript  Copy Code

function SimpleSeries (values, labels)

 Parameters

values

Type: List | Array
A list of data values.

labels

Type: List | Array
A list of labels.

 Example

The following code creates a SimpleSeries and assigns it to the series property of a FunnelChart. The SimpleSeries uses two arrays:

JavaScript  Copy Code

// create sample data

funnelChart.series = new Charting.SimpleSeries([70, 60, 50, 30, 20, 15, 10, 4], ["Unqualified prospects", "Leads", "Initial communication",
 "Customer evaluation", "Negotiation", "Purchase order received", "Delivery", "Payment"]);

 See Also

SimpleSeries Constructor Overload List
SimpleSeries Class
MindFusion.Charting Namespace